#include "fuNamedObject.h"

BEGIN_NAMESPACE_CPPX

fuNamedObject::fuNamedObject(const std::string & argName)
{
	name = argName;
}

fuNamedObject::fuNamedObject(const fuNamedObject &copy)
{
	if(this != &copy)
		name = copy.name;
}

fuNamedObject::~fuNamedObject()
{
	name.clear();
}

fuNamedObject &
fuNamedObject::operator=(const fuNamedObject &copy)
{
	if(this != &copy)
		name = copy.name;
	return *this;
}

void
fuNamedObject::setName(const std::string &nameArg)
{
	name = nameArg;
}

std::string const &
fuNamedObject::getName() const
{
	return name;
}

END_NAMESPACE_CPPX
